{% extends "templates/base.html" %}

{% block body %}
    <article class="page">
        <div class="header">
            <h1>{{category}}</h1>
        </div>
        {% if not matches %}
            <p>There's not any result in this category... not sure it does relaly exist</p>
            {% else %}
            <section>
            {% for k in matches.keys() %}
                <h2>{{k|capitalize}}</h2>
                <ul class="archive_list">
                {% for item in matches[k] %}
                    <li>
                        <a href="{% if k=='posts' %}p{% else %}b{% endif %}/{{ item[0] }}">
                        {{ item[1] }}</a>
                    </li>
                {% endfor %}
                </ul>
            {% endfor %}
            </section>
        {% endif %}
    </article>
{% endblock %}

{#
 vim: ft=htmldjango
#}
